package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IAfterSaleActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.IssurAfterSaleRequest;
import com.wgts.wgts.netmodle.resp.AfterSaleEntity;
import com.wgts.wgts.netmodle.resp.CurrentEntity;

import java.util.List;

/*
 *
 *
 *   data:2018/10/1614:28
 *
 */public class AfterSaleActivityModel implements IAfterSaleActivityModel {
     private NetService netService;

    public AfterSaleActivityModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void initDate(HttpResultSubscriber<List<String>> subscriber) {
        netService.afterSale(subscriber);
    }

    @Override
    public void issueAfterSale(IssurAfterSaleRequest request, HttpResultSubscriber<CurrentEntity> subscriber) {
        netService.issueAfterSale(request, subscriber);
    }
}
